#ifndef _UART1_H_
#define _UART1_H_

#include "common_def.h"

// NOTE: uart operates at baud-rate 9600
void uart1_init(void);
void uart1_uninit(void);
void uart1_putc(uint8 c);
bool uart1_getc(uint8* pc);

// simulate the case when a char received from hardware
void uart1_hw_receive(uint8 c);

void uart1_disable_input(void);
void uart1_enable_input(void);


#endif // _UART1_H_
